-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new label for scraping metrics #1190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add sumologic/scrape: true
annotation instead of name based. In the prometheus we can set multiple matchLabels
to scrape by, so it will be eg.:
matchLabels:
app.kubernetes.io/name: fluent-bit
sumologic.com/scrape: true
Annotations are not used to identify and select objects. , see this. I tested with annotations and it does not work, target for metics is not correctly selected.
Created resources:
|
I'll add label "sumologic.com/scrape: true" |
46858d1
to
2c74dcd
Compare
deploy/helm/sumologic/values.yaml
Outdated
service: | ||
## Add custom labels to fluent-bit service | ||
labels: | ||
sumologic.com/scrape: "true" # label used by fluent-bit service monitor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be this way? 🤔
sumologic.com/scrape: "true" # label used by fluent-bit service monitor | |
sumologic.com/scrape: "true" # label used by fluent-bit service monitor |
2c74dcd
to
10bb43c
Compare
10bb43c
to
3fcd985
Compare
Description
Fixes #896
Testing performed